Skip to content

Batch manual-sprint planner checkpoint reviews - #4

Merged
rica-v3 merged 2 commits into
release/enhancementfrom
enhancement/planner-review-batching
Jul 27, 2026
Merged

Batch manual-sprint planner checkpoint reviews#4
rica-v3 merged 2 commits into
release/enhancementfrom
enhancement/planner-review-batching

Conversation

@rica-v3

@rica-v3 rica-v3 commented Jul 19, 2026

Copy link
Copy Markdown
Member

Summary

  • gate requirement checkpoint reviews on both a successful TODO outcome and at least one valid pending requirement candidate
  • share the same review policy between manual and autonomous sprint execution
  • batch all currently pending candidates into one existing planner reconciliation request
  • document the optimized manual-sprint review behavior

Why

Manual sprints previously forced an ongoing_review planner call after every completed or committed TODO, even when no requirement candidates existed. Planner runs with xhigh reasoning by default, so these no-op reviews added deterministic model cost and critical-path latency without changing sprint scope.

Impact

For a manual sprint with N successful TODOs, no new requirements, and execution within one configured review interval, forced ongoing planner reviews fall from N to 0.

Pending requirements still trigger a review at the next completed or committed TODO checkpoint. Multiple candidates are carried in one reconciliation request. Initial/recovery reviews, interval-based reviews, TODO execution, architecture review, QA, version control, and closeout behavior are unchanged.

Validation

  • python -m unittest discover -s teams_runtime/tests - 760 tests passed
  • focused sprint lifecycle and execution suites - 69 tests passed
  • python -m compileall -q teams_runtime - passed
  • git diff --check - passed
  • no test-started runtime process remained after validation

@rica-v3
rica-v3 marked this pull request as ready for review July 26, 2026 07:52
@rica-v3 rica-v3 self-assigned this Jul 26, 2026
@rica-v3
rica-v3 requested a review from Copilot July 26, 2026 07:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes sprint “checkpoint” planner reviews by only triggering them when a TODO successfully completes/commits and there is at least one valid pending requirement candidate, aligning manual and autonomous sprint behavior while reducing no-op planner calls and latency.

Changes:

  • Introduces requirement_checkpoint_review_due() to centralize checkpoint-review gating logic (success status + valid pending candidates).
  • Updates manual and autonomous sprint flows to use the shared checkpoint predicate, preventing forced ongoing_review calls when no candidates exist.
  • Expands test coverage to validate candidate filtering, checkpoint gating, and manual-sprint batching behavior; documents the manual-sprint batching behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
workflows/sprints/lifecycle.py Adds a shared checkpoint-review predicate and applies it in manual + autonomous sprint loops.
tests/test_sprint_lifecycle.py Adds unit coverage for checkpoint gating and ensures only valid pending candidates are exposed.
tests/test_orchestration_sprint_execution.py Adds orchestration-level tests ensuring manual sprints don’t invoke planner without candidates and batch candidates into one checkpoint review.
docs/operations_guide.md Documents the optimized manual-sprint checkpoint review behavior and batching semantics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rica-v3
rica-v3 merged commit bb154e3 into release/enhancement Jul 27, 2026
1 check passed
@rica-v3
rica-v3 deleted the enhancement/planner-review-batching branch July 27, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants